package cn.edu.zucc.leyi.util.network;

import java.util.HashMap;
import java.util.Map;

public class HttpRequest {
	protected String method = "GET";
	protected String url;
	protected Map<String, String> headers = new HashMap<String, String>();
	protected Map<String, String> params = new HashMap<String, String>();

	public void setHeader(String key, String value) {
		headers.put(key, value);
	}

	public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Map<String, String> getHeaders() {
		return headers;
	}

	public void setHeaders(Map<String, String> headers) {
		this.headers = headers;
	}

	public Map<String, String> getParams() {
		return params;
	}

	public void setParams(Map<String, String> params) {
		this.params = params;
	}

	public void setParam(String key, String value) {
		params.put(key, value);
	}

}
